fix: upgrade lucide-react to 0.541.0 to resolve security issue#5732
Conversation
- Fixes #5730 where Microsoft Defender flags chrome.js as Trojan Horse - Upgrades from 0.540.0 to 0.541.0 which resolves the security issue - Allows reflex run to work without build failures Co-Authored-By: Alek <alek@pynecone.io>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
There was a problem hiding this comment.
Greptile Summary
This PR addresses a critical security false positive issue by upgrading the lucide-react dependency from version 0.540.0 to 0.541.0. The change resolves a problem where Microsoft Defender was incorrectly flagging chrome.js in the older version as a Trojan Horse, causing reflex run to fail with build errors and blocking developer workflows.
The implementation involves two key changes: First, updating the LUCIDE_LIBRARY constant in reflex/components/lucide/icon.py from "lucide-react@0.540.0" to "lucide-react@0.541.0". This constant serves as the single source of truth for the lucide-react version throughout Reflex's Lucide icon system. Second, updating the corresponding hash in pyi_hashes.json for the lucide icon type stub file to maintain compatibility with Python's type checking system.
This change integrates seamlessly with Reflex's existing architecture. The Lucide icon component system in Reflex dynamically imports the specified version of lucide-react through the LUCIDE_LIBRARY constant, making this version update straightforward and maintainable. The hash update in pyi_hashes.json ensures that the Python type stub system continues to work correctly with the new dependency version.
Confidence score: 4/5
- This PR is safe to merge with minimal risk as it addresses a critical blocking issue through a simple dependency version bump
- Score reflects the straightforward nature of the security fix and successful test results, though manual functional testing was incomplete due to environment issues
- Pay attention to verifying that the new version actually resolves the Microsoft Defender false positive and that lucide icons continue to render correctly
2 files reviewed, no comments
CodSpeed Performance ReportMerging #5732 will not alter performanceComparing Summary
|
Description
This PR fixes issue #5730 where Microsoft Defender flags
chrome.jsin lucide-react@0.540.0 as a Trojan Horse, causingreflex runto fail with build errors.Changes
LUCIDE_LIBRARYconstant from"lucide-react@0.540.0"to"lucide-react@0.541.0"inreflex/components/lucide/icon.pypyi_hashes.jsonto reflect the new hash for the lucide icon.pyi fileType of Change
Verification
Human Review Checklist
Additional Context
reflex runwithout encountering Microsoft Defender security warningsAll Submissions:
Changes To Core Features: